#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
const int N = 5e6 + 10;
typedef long long ll;
typedef unsigned long long ull;
ll a[N], n, num = 0;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    cin >> n;
    for (int i = 1; i <= n; i++)
    {
        cin >> a[i];
        while (a[i] != 0 && a[i] % 2 == 0)
        {
            a[i] = a[i] / 2;
            num++;
        }
    }
    cout << num << endl;
    return 0;
}